package com.bawei.mall.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bawei.mall.user.domain.CusOrder;
import com.bawei.mall.user.domain.MallCusShop;
import com.bawei.mall.user.domain.MallProductCar;
import com.bawei.mall.user.service.ICusShopService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface MallCusShopMapper extends BaseMapper<MallCusShop> {
    List<MallProductCar> findList(@RequestParam Integer userId);

    void delectClear(Integer userId);

    void quantity(@Param("id") Integer id, @Param("quantity") Integer quantity);

    void deleteIds(Integer ids);

    void generateOrder(CusOrder cusOrder);

    List<MallProductCar> findByUserIdIdsList(@Param("userId") Integer userId, @Param("ids") List<String> ids);

    List<MallProductCar> findCusOrderList(Integer userId);

    void AddMiddleOrder(@Param("orderId") Integer orderId, @Param("mallProductCars") List<MallProductCar> mallProductCars);



//    void add(MallCusShop mallCusShop);

}
